package command;

/**
 * User: Alexander Martyushov
 * Date: 12/10/12
 * Time: 7:19 AM
 */
public class RemoteControlTest {

    public static void main(String[] args){

        RemoteControl remoteControl = new RemoteControl();
        Light light = new Light();
        GarageDoor garageDoor = new GarageDoor();

        LightOnCommand lightOn = new LightOnCommand(light);
        GarageDoorOpenCommand garageDoorOpen = new GarageDoorOpenCommand(garageDoor);

        remoteControl.setCommand(lightOn);
        remoteControl.buttonWasPressed();

        System.out.println();
        remoteControl.setCommand(garageDoorOpen);
        remoteControl.buttonWasPressed();



    }



}
